<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$smarty.const.Site_Name}</title>
<link href="css/public.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="Js/string.js"></script>
<script type="text/javascript" src="Js/EXPORT.js"></script>
<script type="text/javascript" src="Js/menu.js"></script>
<script type="text/javascript" src="Js/exec.js"></script>
</head>

<body>
{include file="header.html"}
<div class="center">
	<div class="left">{include file="menu.html"}</div>
	<div class="right">
		<div class="Nav">
			<ul>
				{if $BTP[$get.open].customize}<li><a href="{write_url url=$thisurl action='customize' DEL='ALL'}" {CLASS_COLOR customize=$get.action CLASS='this'}>CSV导入数据库(自定义)</a></li>{/if}
				{if $BTP[$get.open].standard}<li><a href="{write_url url=$thisurl action='standard' DEL='ALL'}" {CLASS_COLOR standard=$get.action CLASS='this'}>CSV导入数据库</a></li>{/if}
				{if $BTP[$get.open].show}<li><a href="{write_url url=$thisurl DEL='ALL'}" {CLASS_COLOR show=$get.action CLASS='this'}>从接口获取CSV文件</a></li>{/if}
			</ul>
			<span class="clear"></span>
		</div>
		<div class="append">
			{if $get.go == 'doo'}
			<h4 style="color:#F00">请选择对应的数据</h4>
			<form action="{write_url url=$thisurl go='go'}" method="post">
			<input type="hidden" name="file_url" value="{$file_url}" />
			{$tab_html}
			<div style="padding:1em 0">
				<b style="color:#69F">删除行数</b> <input name="del_NO" type="text" value="1,2" />
				<span style="color:#666;">注意:如果删除多行数据 请用半角状态的逗号隔开</span>
			</div>
			<input type="submit" value="确定" />
			</form>
			{elseif $get.go == 'end'}
			<div align="center" style="padding:100px 0">
				<b style="color:#F00; display:block; margin:1em;">数据导入成功</b>
				<a href="{write_url url=$thisurl action='customize' DEL='ALL'}" style="margin:0 1em">返回到 导入 程序</a>
			</div>
			{else}
			<form action="{write_url url=$thisurl go='doo'}" method="post" enctype="multipart/form-data">
				<table width="100%" border="0" cellspacing="1" cellpadding="0" id="tab_show">
					<tr><th colspan="2">自定义CSV文件导入程序</th></tr>
					<tr>
						<td align="right" class="Need" width="40%">请选择CSV文件</td>
						<td><input type="file" name="csv" size="60" style="height:25px; width:80%" /></td>
					</tr>
					<tr><th align="center" colspan="2"><input type="submit" value=" 上传 " /></th></tr>
				</table>
			</form>
			{/if}
		</div>
	</div>
	<b class="clear"></b>
</div>
</body>
</html>